public class BMI {
    double sex;
    double height;
    double weight;
    double bmi;

    public double getsex() {
        return sex;
    }

    public void sex(int sex) {
        this.sex = sex;
    }

    public double getheight() {
        return height;
    }

    public void setheight(double height) {
        this.height = height;
    }

    public double getweight() {
        return weight;
    }

    public void setweight(double weight) {
        this.weight = weight;
    }

    public BMI(double sex, double height, double weight) {
        this.sex = sex;
        this.height = height;
        this.weight = weight;
    }

    public double bmicount() {
        bmi = weight / (height * height);
        return bmi;
    }
}
